<!--模板组件-->
<template>
  <el-carousel height="220px" direction="vertical" :autoplay="isplay" :interval="2000">
    <el-carousel-item v-for="(item,index) in list" :key="index">
      <div class="img_box">
        <img :src="item" />
      </div>
    </el-carousel-item>
  </el-carousel>
</template>
<script>
import p1 from "@/assets/image/banner/zhongchuhong.jpg";
import p2 from "@/assets/image/banner/wangzuxian.jpg";
import p3 from "@/assets/image/banner/yeqianwen.jpg";
export default {
  props: {
    isplay: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      list: [p1, p2, p3],
    };
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.img_box {
  height: 220px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
</style>